package com.xcity.pomelo.response;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class LoginResponse extends Response {

	public static class User {
//		String id;
		public String userId;
		public String userName;
		public String ip;
		public User() {}
		public User(String id, String userId, String userName, String ip) {
//			this.id = id;
			this.userId = userId;
			this.userName = userName;
			this.ip = ip;
		}
	}
	
	public User user;
	public LoginResponse() {
		super(CODE_ERROR);
	}
	public LoginResponse(int serial, String token, String id, String userId, String userName, String ip) {
		super(serial);
//		this.token = token;
//		this.isNew = isNew;
		this.user = new User(id, userId, userName, ip);
	}
}
